#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    connect(this, &Widget::mysignal1, this, &Widget::handl1);
    connect(this, &Widget::mysignal1, this, &Widget::handl2);
    connect(this, &Widget::mysignal2, this, &Widget::handl1);
    connect(this, &Widget::mysignal3, this, &Widget::handl3);
}

Widget::~Widget()
{
    delete ui;
}
void Widget::handl1(){
    qDebug() << "1";
}
void Widget::handl2(){
    qDebug() << "2";
}
void Widget::handl3(){
    qDebug() << "3";
}


void Widget::on_pushButton_clicked()
{
    mysignal1();
}

void Widget::on_pushButton_2_clicked()
{
    mysignal3();
}
